home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / src / linux-headers-2.6.28-15 / security / apparmor / Makefile < prev   
Encoding:
Makefile  |  2009-09-09  |  813 b   |  19 lines

  1. # Makefile for AppArmor Linux Security Module
  2. #
  3. obj-$(CONFIG_SECURITY_APPARMOR) += apparmor.o
  4.  
  5. apparmor-y := main.o list.o procattr.o lsm.o apparmorfs.o \
  6.           module_interface.o match.o
  7.  
  8. quiet_cmd_make-caps = GEN     $@
  9. cmd_make-caps = sed -n -e "/CAP_FS_MASK/d" -e "s/^\#define[ \\t]\\+CAP_\\([A-Z0-9_]\\+\\)[ \\t]\\+\\([0-9]\\+\\)\$$/[\\2]  = \"\\1\",/p" $< | tr A-Z a-z > $@
  10.  
  11. quiet_cmd_make-af = GEN     $@
  12. cmd_make-af = sed -n -e "/AF_MAX/d" -e "/AF_LOCAL/d" -e "s/^\#define[ \\t]\\+AF_\\([A-Z0-9_]\\+\\)[ \\t]\\+\\([0-9]\\+\\)\\(.*\\)\$$/[\\2]  = \"\\1\",/p" $< | tr A-Z a-z > $@
  13.  
  14. $(obj)/main.o : $(obj)/capability_names.h $(obj)/af_names.h
  15. $(obj)/capability_names.h : $(srctree)/include/linux/capability.h
  16.     $(call cmd,make-caps)
  17. $(obj)/af_names.h : $(srctree)/include/linux/socket.h
  18.     $(call cmd,make-af)
  19.